package main

import (
	"fmt"
)

func Sqrt(x float64) float64 {
	i := 1
	for i < 10 {
		x -= (x*x - x) / (2 * x)
		i += 1
	}

	return x

}

func main() {
	fmt.Println(Sqrt(2))
}
